package com.jk.customer.dao;

import com.jk.customer.entity.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 方法实现说明    (dao)
 * @author      潘天赐
 * @return
 * @exception
 * @date        2021/10/11 20:33
 */
@Mapper
public interface SellerDao {

    List<MaterialsEntity> queryMaterials(String showPriceId);

    void addOffer(OfferFormEntity offer);

    List<MaterialsEntity> queryMaterialsOffer(@Param("id") String id, @Param("userId") Integer userId);

    OfferFormEntity findByOffer(@Param("oid") Integer oid, @Param("userId") Integer userId);

    void updateOffer(OfferFormEntity offer);

    List<ProductEntity> queryMaterialsAll(@Param("product") ProductEntity product, @Param("userId")Integer userId);

    MaterialsEntity findbyProductId(String queryPriceId);

    void updateMaterialsPTC(MaterialsEntity materials);

    void updateOfferPTC(MaterialsEntity materials);

    void updateProductPTC(MaterialsEntity materials);

    MaterialsEntity export(@Param("id") Integer id, @Param("userId") Integer userId);

    List<PictureFile> queryPictureFile(@Param("id") String id, @Param("userId") Integer userId);

    void addFile(PictureFile file);

    void deleteFile(Integer id);

    void updateQueryPriceStatus(String queryPriceId);

    List<MaterialsTypeEntity> queryMaterialsType();

    void addPictureMaterials(MaterialsEntity materials);

    void updateQueryPictureStatus(String queryCommonId);

    MaterialsEntity queryPictureMaterials(String id);

    void updatePictureMaterials(MaterialsEntity materials);

    BusinessClass findByOrder(String id);

    List<MaterialsEntity> queryMaterialsMessage(String id);
}
